<template>
  <div id="app">
    <!-- 分页显示中文 -->
    <el-config-provider :locale="locale">
      <slot name="app"></slot>
    </el-config-provider>
    <router-view />
  </div>
</template>

<style>
@import url("//unpkg.com/element-ui@2.15.6/lib/theme-chalk/index.css");
</style>

<script>
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/lib/locale/lang/zh-cn";

export default {
  name: "App",
  components: {
    [ElConfigProvider.name]: ElConfigProvider,
  },
  setup() {
    let locale = zhCn;
    return {
      locale,
    };
  },
};
</script>
